projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c1d592
)
(dig-mode): Replace gnus-run-mode-hooks with equivalent expansion.
author
Glenn Morris
<rgm@gnu.org>
Sat, 1 Dec 2007 20:46:06 +0000
(20:46 +0000)
committer
Glenn Morris
<rgm@gnu.org>
Sat, 1 Dec 2007 20:46:06 +0000
(20:46 +0000)
lisp/net/dig.el
patch
|
blob
|
history
diff --git
a/lisp/net/dig.el
b/lisp/net/dig.el
index 9d62fdc9919504b559ca2fbfe839c43f64786da9..cee3a5c17cc48114c5d041f5db68472b20536ec8 100644
(file)
--- a/
lisp/net/dig.el
+++ b/
lisp/net/dig.el
@@
-151,7
+151,10
@@
Buffer should contain output generated by `dig-invoke'."
'(dig-font-lock-keywords t)))
(when (featurep 'font-lock)
(font-lock-set-defaults))
- (gnus-run-mode-hooks 'dig-mode-hook))
+ (save-current-buffer
+ (if (fboundp 'run-mode-hooks)
+ (run-mode-hooks 'dig-mode-hook)
+ (run-hooks 'dig-mode-hook))))
(defun dig-exit ()
"Quit dig output buffer."